import {lazy} from 'react'
import {Navigate} from 'react-router-dom'
const Home = lazy(()=>import('../pages/Home'))
const PersonalCenter = lazy(()=>import('../pages/PersonalCenter'))

const routes = [
    {
        path:'/my',
        element:<PersonalCenter/>
    },
    {
        path:'/home',
        element:<Home/>
    },
    {
        path:'/',
        element:<Navigate to="/home"/>
    }
]
export default routes;